package com20230224;

public class Circle extends Shape {
//    private String type;
    private int radius;

    public Circle(String type, int radius) {
        super(type);
        this.radius = radius;
    }

    @Override
    public void caclulate() {
        area = 3.14 * radius * radius;
    }
    public void show() {
        System.out.println(super.getType() + "的半径为：" + radius + "\n" +
                "面积为：" + area);
    }
}
